import type { RouteRecordRaw } from 'vue-router'

export const staticRoutes: Array<RouteRecordRaw> = [
  {
    name: 'index',
    path: '/',
    component: () => import('../views/home.vue')
  },
  {
    name: 'adminHome',
    path: '/admin',
    redirect:'/bookList',
    component: () => import('../views/admin/admin.vue'),
    children:[
      {
        name: 'bookList',
        path: '/bookList',
        component: () => import('../views/admin/bookList.vue')
      },
      {
        name: 'createBook',
        path: '/createBook',
        component: () => import('../views/admin/createBook.vue')
      }
    ]
  },
 
  {
    name: 'login',
    path: '/login',
    component: () => import('../views/login.vue')
  },
  {
    name: 'vue5',
    path: '/vue5',
    component: () => import('../views/vue5.vue')
  }
]